home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 023a / icsp.zip / INSTALL2.BAT < prev    next >
DOS Batch File  |  1991-09-12  |  3KB  |  133 lines

  1. ECHO OFF
  2. IF %1==F GOTO FLOPINS
  3. IF %1==H GOTO HARDINS1
  4. CLS
  5. GO2
  6. :FLOPINS
  7. ECHO OFF
  8. CLS
  9. IF %2==1 GOTO FLOPINS1
  10. IF %2==2 GOTO FLOPINS2
  11. CLS
  12. ECHO  This floppy installation requires that you enter either a '1' or a '2',
  13. ECHO  following your 'GO F' instruction.
  14. GOTO END
  15. :FLOPINS2
  16. CLS   
  17. ECHO  Enter disk 2, SALES-B, into drive A now.
  18. ECHO  [it should still be in Drive A]
  19. PAUSE
  20. A:
  21. B:PKUNZIP -X B:SALE-C41.ZIP PROSPECT.OVL
  22. B:PKUNZIP -X B:SALE-C41.ZIP *.FRM
  23. CLS
  24. ECHO  Enter disk 3, SALESDOC, into drive A now.
  25. PAUSE 
  26. A:     
  27. B:PKUNZIP -X B:SALE-D41.ZIP SALESDOC
  28. GOTO FLOPDOC
  29. :FLOPDOC
  30. CLS 
  31. ECHO  Finished !
  32. ECHO  Disk  3,  the documentation and tutorial,  is not used while  the 
  33. ECHO  program  is  running.   It  contains a 60 page tutorial
  34. ECHO  and  can  be printed  out will this command:          
  35. ECHO                           COPY SALESDOC LPT1:  
  36. echo  
  37. ECHO  To start the program,:
  38. ECHO  Enter SALES-A, disk one, into drive A.
  39. ECHO  Enter SALES-B, disk two, into drive B.
  40. echo  
  41. ECHO  Then restart the computer and execute GO      {executed from B}
  42. GOTO END
  43. :FLOPINS1
  44. ECHO  Beginning with version 3.0 of this program, the executable files have
  45. ECHO  become so large that the low density option of 360KB is no longer supported.
  46. GOTO END
  47. :HARDINS1
  48. CLS
  49. echo  
  50. %2:
  51. CD \
  52. CD SERVICE
  53. COPY A:MAINTC40.EXE >TMP
  54. MAINTC40
  55. DEL MAINTC40.EXE
  56. COPY A:MAINTD40.EXE >TMP
  57. MAINTD40
  58. COPY GO-%2.BAT GO.BAT
  59. DEL MAINTD40.EXE
  60. COPY A:YESNO.COM >TMP
  61. COPY A:ECOH.COM >TMP
  62. CLS
  63. echo  
  64. ECOH ══════════    Tutorial for program    ══════════
  65. echo  
  66. ECHO  SERVICE.DOC is the 60 page tutorial and reference guide.
  67. echo  
  68. ECHO  Would you like to print it out now?
  69. echo  
  70. :YESNO
  71. YESNO
  72. CLS
  73. IF ERRORLEVEL 89 IF NOT ERRORLEVEL 90 GOTO YESNEXT
  74. IF ERRORLEVEL 78 IF NOT ERRORLEVEL 79 GOTO YESPREF
  75. GOTO YESNO
  76. :YESNEXT
  77. CLS
  78. ECHO Please make sure your printer is now turned on and set
  79. ECHO to the 'top of form'. Then press any key to continue.
  80. echo  
  81. PAUSE
  82. CLS
  83. echo  
  84. echo  
  85. ECOH ══════════ Now printing tutorial and reference guide ══════════
  86. COPY SERVICE.DOC LPT1:
  87. CLS
  88. GOTO YES1
  89. :YESPREF
  90. CLS
  91. echo  
  92. ECOH ══════════    Preface to Tutorial  ══════════
  93. echo  
  94. ECHO  Since you elected not to print SERVICE.DOC,
  95. ECHO  Would you like to print the 3 page Preface to the Tutorials instead?
  96. echo  
  97. :YES2
  98. YESNO
  99. CLS
  100. IF ERRORLEVEL 89 IF NOT ERRORLEVEL 90 GOTO YES3
  101. IF ERRORLEVEL 78 IF NOT ERRORLEVEL 79 GOTO YES1
  102. GOTO YES2
  103. :YES3
  104. CLS
  105. echo  
  106. echo  
  107. ECOH ══════════   Printing Preface to Tutorial  ══════════
  108. echo  
  109. COPY PREFACE.TXT LPT1: >TMP
  110. GOTO YES1
  111. :YES1
  112. CLS
  113. echo  
  114. echo  
  115. echo  
  116. ECOH ══════════ Free memory available for program ══════════
  117. echo  
  118. ECHO The program must have 500 kb free memory. Observe the next 
  119. ECHO 'bytes are free.' message below.  If below 500k, then
  120. ECHO enter a 'CONTROL-C' now to stop and remove any memory resident
  121. ECHO programs.  Otherwise enter any other key to continue.
  122. echo  
  123. echo  
  124. MEMORY
  125. echo  
  126. echo  
  127. PAUSE
  128. CLS
  129. GO
  130. GOTO END
  131. :END
  132. echo  
  133.